package com.bdqn.t382;

import com.bdqn.t382.preview.entity.Pet;
import com.bdqn.t382.preview.factory.PetDaoFactory;
import com.bdqn.t382.preview.service.PetService;
import com.bdqn.t382.preview.service.impl.PetServiceImpl;


public class Main {
    public static void main(String[] args) {
        PetDaoFactory.defaultBeanName = "petDaoOracleImpl";
        PetService petService = new PetServiceImpl();
        Pet pet = new Pet();
        pet.setName("小马喽");
        petService.save(pet);
    }
}
